package com.ea.admin.controller.superAdmin;

import com.ea.admin.service.RestartService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Api(tags = "超级管理-重启后端服务")
@RequestMapping("/admin/super/restart")
public class SuperRestartController {
    @Resource
    RestartService restartService;

    @PostMapping("/restartAll")
    public void restartAll() {
        restartService.restartAll();
    }

    // 可以添加单个的重启接口
}
